package com.itlong.cloud.dao;

import com.itlong.cloud.POJO.PO.DeviceBusinessEntranceChangeLogPO;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

import java.util.List;

/**
 * <desc>
 *      云门禁设备硬件指令持久层对象
 * </desc>
 *
 * @createDate 2019/02/27
 */
@Mapper
@Repository
public interface ICloudEntranceChangeBusinessDao {

    /**
     * <desc>
     *      根据房间ID查询对应的楼栋与单元ID
     * </desc>
     *
     * @param roomId 房间ID
     * @return 楼栋与单元ID
     * @author wangzhi
     * @createDate 2019/02/27
     */
    String deviceChangeLogGetBuildAndUnitIdByRoomId(@Param("roomId") String roomId);

    /**
     * <desc>
     *      云门禁_批量保存设备端推送指令
     * </desc>
     *
     * @param deviceBusinessEntranceChangeLogPOS 待保存的参数集
     * @author wangzhi
     * @createDate 2019/02/27
     */
    Integer saveDeviceBusinessChangeLogBatch(List<DeviceBusinessEntranceChangeLogPO> deviceBusinessEntranceChangeLogPOS);

}
